//
//  BQAddRessView.m
//  我的收货地址
//
//  Created by 万伶童 on 16/11/20.
//  Copyright © 2016年 解延峰. All rights reserved.
//

#import "BQAddRessView.h"
@interface BQAddRessView()

@end
@implementation BQAddRessView

  
- (IBAction)deleteBtn:(UIButton *)sender {
    
    
    NSDictionary * dic = @{@"delete":_indexpTwo};
    //MARK: 删除通知
    [[NSNotificationCenter defaultCenter] postNotificationName:@"delete" object:self userInfo:dic];
    
    
    NSLog(@"===删除");
}

- (IBAction)xiaoBtn:(UIButton *)sender {
    
    if (_tmpBtn == nil){
        sender.selected = YES;
        _tmpBtn = sender;
    }
    else if (_tmpBtn !=nil && _tmpBtn == sender){
        sender.selected = YES;
        
    }
    else if (_tmpBtn!= sender && _tmpBtn!=nil){
        _tmpBtn.selected = NO;
        sender.selected = YES;
        _tmpBtn = sender;
    }
    
}


@end
